import requests

# resp = requests.get(url='http://tpshop-test.itheima.net/Home/Goods/search.html?q=%E6%89%8B%E6%9C%BA')
resp = requests.get(url='http://tpshop-test.itheima.net/Home/Goods/search.html',
                    params={'q':'%E6%89%8B%E6%9C%BA'})

print('打印响应结果，显示文本内容：', resp.text)
